package main

import "fmt"

type Book struct {
	name string
}

func testFunc(arg interface{}) {
	value, ok := arg.(float64)
	fmt.Println(value, ok)
}
func main() {
	book := Book{"人生行记"}
	testFunc(book)
	testFunc("nanfeng is mingquan")
	testFunc(3.15)
}
